package com.kaifamiao.www.demo.do0801.factory;

public class Test2 {
    public static void main(String[] args) {
        HumanMethodFactory factory = new BlackHumanFactory();
        Human1 man = factory.createMan();
        Human1 woman = factory.createWoman();
        man.printColor();
        woman.printColor();
    }
}
